Skip to content

Tracing flame #4030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

JonathanWoollett-Light
Copy link
Contributor

Changes

...

Reason

...

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following
Developer Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • New TODOs link to an issue.
  • Commits meet contribution quality standards.

  • This functionality cannot be added in rust-vmm.

@JonathanWoollett-Light JonathanWoollett-Light added Priority: Medium Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled Status: Blocked Indicates that an issue or pull request cannot currently be worked on Type: Enhancement Indicates new feature requests labels Aug 14, 2023
@JonathanWoollett-Light
Copy link
Contributor Author

Blocked on #3810

@JonathanWoollett-Light JonathanWoollett-Light force-pushed the tracing-flame branch 7 times, most recently from 0beb6fc to de74b3c Compare August 14, 2023 03:31
@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Patch coverage: 89.04% and project coverage change: -11.70% ⚠️

Comparison is base (6bf22c2) 82.66% compared to head (0c24377) 70.97%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4030       +/-   ##
===========================================
- Coverage   82.66%   70.97%   -11.70%     
===========================================
  Files         221      219        -2     
  Lines       28192     9096    -19096     
===========================================
- Hits        23306     6456    -16850     
+ Misses       4886     2640     -2246     
Flag Coverage Δ
4.14-c7g.metal 65.99% <84.73%> (-12.13%) ⬇️
4.14-m5d.metal 69.82% <86.75%> (-10.08%) ⬇️
4.14-m6a.metal 69.77% <86.56%> (?)
4.14-m6g.metal 65.99% <84.73%> (-12.14%) ⬇️
4.14-m6i.metal 69.82% <86.75%> (-10.08%) ⬇️
5.10-c7g.metal 67.02% <87.75%> (-14.04%) ⬇️
5.10-m5d.metal 70.73% <89.79%> (-11.86%) ⬇️
5.10-m6a.metal 70.69% <89.61%> (-11.15%) ⬇️
5.10-m6g.metal 67.02% <87.75%> (-14.05%) ⬇️
5.10-m6i.metal 70.73% <89.79%> (-11.85%) ⬇️
6.1-c7g.metal 67.02% <87.75%> (-14.04%) ⬇️
6.1-m5d.metal 70.73% <89.79%> (-11.86%) ⬇️
6.1-m6a.metal 70.69% <89.61%> (-11.15%) ⬇️
6.1-m6g.metal 67.02% <87.75%> (-14.05%) ⬇️
6.1-m6i.metal 70.73% <89.79%> (-11.85%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/firecracker/src/api_server_adapter.rs 0.00% <0.00%> (ø)
src/firecracker/src/main.rs 1.16% <0.00%> (+0.93%) ⬆️
src/jailer/src/chroot.rs 0.00% <0.00%> (ø)
...c/vmm/src/arch/aarch64/gic/gicv2/regs/dist_regs.rs 0.00% <0.00%> (ø)
...rc/vmm/src/arch/aarch64/gic/gicv2/regs/icc_regs.rs 0.00% <0.00%> (ø)
src/vmm/src/arch/aarch64/gic/gicv2/regs/mod.rs 0.00% <0.00%> (ø)
src/vmm/src/rpc_interface.rs 12.97% <ø> (-50.30%) ⬇️
src/vmm/src/seccomp_filters.rs 100.00% <ø> (ø)
src/vmm/src/signal_handler.rs 28.04% <ø> (-53.49%) ⬇️
src/vmm/src/vmm_config/balloon.rs 85.71% <ø> (-12.02%) ⬇️
... and 195 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Jonathan Woollett-Light added 7 commits August 17, 2023 17:15
Re-exports logging macros from `logger` to allow more atomic changes
in `logger`.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Replaces `log` with `tracing` and the custom logger with
`tracing_subscriber::Fmt`.

Adding support for re-configuring the logger at run-time and
removing the old logger format.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Add the ` FilterFn` layer to support filtering by crates, modules and
spans. With `tracing::instrument` spans wrap functions, this would
support filtering to specific functions.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Adds code instrumentation. This opens support for tracing and
profiling via this instrumentation.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Runs `clippy-tracing --check` to assert code is properly instrumented.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Enables the `max_level_debug` tracing features to omit instrumentation
by default.

Signed-off-by: Jonathan Woollett-LIght <jcawl@amazon.co.uk>
Adds `tracing_flame` as code instrumentation based profiler that can
be used to profile Firecracker.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled Status: Blocked Indicates that an issue or pull request cannot currently be worked on Type: Enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant